package com.itheima.Day0613.Demo01.demo01;

public class Testpolymorpic {
    public static void main(String[] args) {
        Fu f = new zi();
        System.out.println(f.num);
        f.mether();
    }
}

class Fu {
    int num = 10;
    public void mether(){
        System.out.println("我是Fu类方法");
    }
}

class zi extends Fu{
    int num = 20;
    public void mether(){
        System.out.println("我是zi类方法");
    }
}